import { createSSRApp } from "vue";
import uviewPlus from 'uview-plus'
import 'default-passive-events'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import { createPinia } from 'pinia'
import App from "./App.vue";

const pinia = createPinia()

export function createApp() {
  const app = createSSRApp(App);
  app.use(pinia);
  pinia.use(piniaPluginPersistedstate);
  app.use(uviewPlus)
  return {
    app,
  };
}
